package org.pupil.socket.serialization;

import java.io.IOException;

/**
 * @Description: 序列化接口
 * @Author: pupil
 * @Date: 2024/07/07 下午 1:17
 */
public interface RpcSerialization{

    <T> byte[] serialize(T obj) throws IOException;

    <T> T deSerialize(byte[] data, Class<T> clazz) throws IOException;
}
